package com.wwg.threads.itcast.demo;

import org.apache.xmlbeans.impl.xb.xsdschema.FractionDigitsDocument;

public class YieldDemo {
    public static void main(String[] args) {
        YieldTask yieldTask = new YieldTask();
        Thread fbb = new Thread(yieldTask, "fbb");
        Thread ly = new Thread(yieldTask, "ly");
        fbb.start();
        ly.start();
    }
}
